package com.juicygames.framework.action;

import android.graphics.Canvas;

import com.juicygames.framework.GameAction;


public class DrawAction extends GameAction {
	
	Canvas canvas;
	
	private static DrawAction instance = null;
	
	public static DrawAction getInstance(Canvas canvas) {
		if (instance == null) {
			instance = new DrawAction(canvas);
		} else {
			instance.setCanvas(canvas);
		}
		return instance;
	}
	
	private DrawAction(Canvas canvas) {
		this.canvas = canvas;
	}
	
	public Canvas getCanvas() {
		return canvas;
	}

	protected void setCanvas(Canvas canvas) {
		this.canvas = canvas;
	}

}
